package com.ning.parking.service;

import com.ning.parking.domain.ParkingLotWhitelist;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ning.parking.domain.ParkingRecord;
import com.ning.parking.domain.VO.BillingTimeVO;
import com.ning.parking.domain.VO.Pagination;
import com.ning.parking.domain.dto.ParkingLotWhitelistPageDto;
import com.ning.parking.domain.dto.ParkingLotWhitelistSaveUpdateDTO;

import java.util.Date;

/**
 *
 */
public interface ParkingLotWhitelistService extends IService<ParkingLotWhitelist> {

    ParkingLotWhitelist saveWhitelist(ParkingLotWhitelist parkingLotBaseInfo);

    /**
     *
     * @param parkingLotBaseInfo
     * @return
     */
    Pagination<ParkingLotWhitelist> selectPage(ParkingLotWhitelistPageDto parkingLotBaseInfo);

    /**
     * 查询白名单车辆
     * @param carLicense
     * @param captureTime
     * @param parkingLotId
     * @return
     */
    ParkingLotWhitelist selectWhitlist(String carLicense, Date captureTime, Long parkingLotId);

    BillingTimeVO selectWhitelistRecord(ParkingRecord record);

    ParkingLotWhitelist saveOrUpdateWhitelist(ParkingLotWhitelistSaveUpdateDTO dto);
}
